#!/bin/bash

export service="background-tasks"

. /etc/lb-startup-common.sh


generate_message "$service" "$@"

log "$message"

send_sentry_message "$message"

if [ "$1" != "0" ]; then
  log "Exited with non-0 status, sleeping 10 seconds"
  sleep 10
fi
